package com.kgc.sbt.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * limit_buy
 * @author 
 */
@Data
@ApiModel(value = "抢购活动实体",description = "用来接收前端请求参数")
public class LimitBuy implements Serializable {
    /**
     * 抢购id
     */
    @ApiModelProperty(value = "抢购id",name = "id",required = false,example = "1")
    private Integer id;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id",name = "goodsId",required = true,example = "1000000")
    private Integer goodsId;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间",name = "startTime",required = true,example = "2021-6-29 20:21")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间",name = "endTime",required = true,example = "2021-6-29 20:21:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 登记时间
     */
    @ApiModelProperty(value = "登记时间",name = "createTime",required = false,example = "2021-6-29 20:21:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 抢购价格
     */
    @ApiModelProperty(value = "抢购价格",name = "price",required = true,example = "23")
    private BigDecimal price;

    private static final long serialVersionUID = 1L;
}